<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
        // var arr = new Array();
        // console.log(arr);
        // console.log(arr.length);

        // arr[0] = "小明";
        // arr[1] = 1;
        // console.log(arr);
        // console.log(arr.length);
        
        // arr.length = 20;
        // arr[18] = "我好帅~"
        // console.log(arr);
        // console.log(arr.length);

        var arr = new Array(1,2,3)
        console.log(arr);
    </script>
</head>
<body>
    
</body>
</html>